package org.csu.mypetstore.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttribute;

@Controller
public class MainController {
    //返回首页的页面_index.html
    @GetMapping("/viewMain")
    public String viewMain(){
        return "redirect:index.html";
    }

    //初始打开时显示login界面
    @RequestMapping("/")
    public String viewLogin(){
        return "redirect:login.html";
    }
}
